package bean;

public class Emp {
    private int empid;
    private String empname;
    private String sex;
    private int age;
    private String tel;
    private String password;
    private int deptid;
    private String deptname;

    public Emp() {
    }

    public Emp(int empid, String empname, String sex, int age, String tel, String password, int deptid, String deptname) {
        this.empid = empid;
        this.empname = empname;
        this.sex = sex;
        this.age = age;
        this.tel = tel;
        this.password = password;
        this.deptid = deptid;
        this.deptname = deptname;
    }

    public int getEmpid() {
        return empid;
    }

    public void setEmpid(int empid) {
        this.empid = empid;
    }

    public String getEmpname() {
        return empname;
    }

    public void setEmpname(String empname) {
        this.empname = empname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getDeptid() {
        return deptid;
    }

    public void setDeptid(int deptid) {
        this.deptid = deptid;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empid=" + empid +
                ", empname='" + empname + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", tel='" + tel + '\'' +
                ", password='" + password + '\'' +
                ", deptid=" + deptid +
                ", deptname='" + deptname + '\'' +
                '}';
    }
}